//简单哈希表做法
var twoSum = function(numbers, target) {
    let map = new Map()
    for(let i=0;i<numbers.length;i++){
        if(map.has(target-numbers[i])){
            return [map.get(target-numbers[i]),i+1]
        }
        map.set(numbers[i],i+1)
    }
};

